package xyz.fuqufyb.aec.feign.InfoFeign;


import com.springcloud.travel.entity.Info;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import xyz.fuqufyb.aec.data.TableResult;
import xyz.fuqufyb.aec.fallback.InfoFeignFallback;


@FeignClient(value = "travel-info",path ="/sys/info",fallback = InfoFeignFallback.class)
public interface InfoFeign {
    @PostMapping("/add")
    boolean addInfo(@RequestBody Info info);

    @PostMapping("/update")
    boolean updateInfo(@RequestBody Info info);

    @RequestMapping("/del")
     boolean delInfo(@RequestParam("ids") String[] ids);

    @GetMapping("/table")
    TableResult getTable(@RequestParam("page") Integer page, @RequestParam("limit") Integer limit);
}
